Updated handleCollisionEvent