Basic structure of game code