So I just made a pretty simple little game, and I am trying to make it that if you don't complete a certain task by the end of an amount of time, then you lose. Otherwise you get to play again after time is up. How do I, for example, end a while loop after a minute has elapsed since the start/restart of program?