-made the Hangman an instance class
-created new fields in the class so that the state of the game is saved in them
-did some refactoring