fixed two small bugs in Number Guessing project
added missing semicolon and moved numGuesses declaration into for loop