Guessing Game

This code is a function that decides which strings to output using the
DOM to get the information and then the players’ guesses, or input, to
display the appropriate message.