Various Bug Fixes

Fixed a bug with entities colliding infinitely and now an init() func is
called on all lua scripts when they are registered