Hangman written in java