Guessing game with isNumber function