You are given an `n x n` board whose squares are numbered 1 to n² in a zigzag (boustrophedon) order: starting at the bottom-left, row by row upward, alternating direction each row. You start on square 1. Each move you roll a six-sided die and move to any square from `curr + 1` to `min(curr + 6, n²)`. If that square holds a snake or ladder (`board[r][c] != -1`), you must move to its destination `board[r][c]`, but you do not follow a second snake or ladder in the same move. Return the fewest moves needed to reach square n², or -1 if it cannot be reached.
You are given an n x n board whose squares are numbered 1 to n² in a zigzag (boustrophedon) order: starting at the bottom-left, row by row upward, alternating direction each row. You start on square 1. Each move you roll a six-sided die and move to any square from curr + 1 to min(curr + 6, n²). If that square holds a snake or ladder (board[r][c] != -1), you must move to its destination board[r][c], but you do not follow a second snake or ladder in the same move. Return the fewest moves needed to reach square n², or -1 if it cannot be reached.