Set up game logic.