Move collision code to entity manager.