how about checking the number of guesses before everything else? then if you have guesses left check the other conditions. otherwise tell them they lost.