Amazing Fix: Tentative Fix : Save the number of chests after a win

The number of chests obtained after winning was not correctly saved when the player exits the game immediately after winning.