Clean up TicTacToeBoard and add some tests.