Implementation of traditional hangman game