Comparing numbers when guessing works
The script tells the user how many guesses the user needed to get it right
The number to be guessed is a random number
If the user guess on a number to high or low we don't count it as a proper guess
When guessing right, we create a new random number
Removed unnecessary comments
Check if the input is a number or not