Intersection detection implemented