Entity-component-system in lua