TD Error for TicTacToe in Java