Added game code and tests.