Updated TicTacToe.java with new get method.