Updates guessing game to match requirements

The current code for the guessing game does not limit the number of
guesses to 5, it just runs forever, unlike what is stated in the
requirements.
I'd rather just make this a local inside of main, as I haven't explained `static` at all.