there's something you do in the restart puzzle function that you don't do when you finished or just started a new puzzle, probably just an "order of exectution" error, happens to the best of us !