Save state when clear puzzle.