CLI hangman in Lua