Converted hangman to OOP