fancier version
Converted hangman into a basic class.