added guessing logic and converted user input to int
using just the + sign to convert string to int
added guessCount var and clickhandler for increasing the guess count
added the number generation outside the click handler to make it refresh on page reload
fixed if statement with else if to allow the function to continue