CocoaNuts sample code for Hangman