Make solving the puzzle or having the time run out trigger success and fail.