pseudocode for saving game state. write the code you wish you had