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.
Moves static variable to local
Merge pull request #88 from zamith/master

Updates guessing game to match requirements