Simplified the collide method.