add comments to explain functionality
grade player's guess to determine if they win or lose