Completed hangman.rb