Removed old collision detection code