Code for this game.