created function to compare random number to the user number and give input. made the new gameclick event handler surround all functions so that variables were available for calculation