updated code

We changed the prompt to an alert to remove confusion about entering a value for the computer to guess and we updated getNumber to catch invalid input.