step 4: Detect the Collisions