Add a command to Save to a new gme file
The key to completing this task is to use the same process as the LoadGame method but obviously instead of reading we need to write. The order of each item of data must be exactly the same or the data would be unreadable.
The method
Start by copying the entire LoadGame method, and rename it SaveGame.