Basics of the game code