updated TicTacToe.java and TicacToeTest.java