Lua programming for chess