A simple class-based hangman game in Python