TicTacToe in Java