save game if the user quits