Practiced hardening hangman and mastermind code