Add win/lose, code to save/restore