timer fix

when the timer ends, it resets the puzzle and timer