Gets the secret (off-board) square i, for storing flags in.
i
int secretSquare(int i) => ((i ~/ h) * 2 * h) + (i % h) + h;