Changing alerts from pop-ups to HTML messages, and updating guessing game logic and input validation