added code to compare the guessed number and the random number