Working version of the tictactoe problem.
Clean up some unit tests.