Refactored Hangman