If A overlapping B - move C to D

it doesn’t matter where you set up the logic as long as the variables are filled properly,
for now, try it inside the component itself