Refactored and made Hangman.rb into a runnable script