partially fixed hangman.rb