Collision detection and deletion works