Began migrating logic components to lua.
Migrated all logic into Lua.