Updated entity component system. now works well.