updated HangmanPuzzle class and tester