Write all the variables out to a file. To resume/load the game, read all the variables back from the file.