added getPlayer and tests to TicTacToe