all previous movement features re-implemented in lua and improved upon. data retrieval now also converted to lua