Simple hangman game in java