TicTacToe game in Java