changed logic to downcase and removed trailing spaces for user input at the end of the game