Hangman project in class based C