api: added lost property
hangman: exit with 1 if game was lost
api: added won property
hangman: print result on exit
hangman: switched to proper logging
hangman: coments