Add inheritance, hangman with an error handled