Added a lot of game code.