Save game to a temp file first before overwriting old savefile.
Cosmetic reformatting of save_game() code.