Hangman in java Applet