improve Word chain

Lua