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.
Uh oh, is that an 8-character tab I see on this line?? o_O