hangman.rb modified