working hangman model but not pretty