Ruby implementation of the game Hangman