reset puzzle function