Simple collision detection