Pseudocode of the game