Turing machine in Lua