updated TicTacToe.java