Collision detection implementation attempted