A hangman game to demonstrate Java Swing