Base code for the game