modified saveGame and loadGame