Hangman main logic

Signed-off-by: Jack Yen <jack@jackyen.com>