Code for the game