Rafactored the physics engine. The collision group usage has been
changed slightly.