N-Dimensional TicTacToe Game in Java