Lua implementation of MageKnight