green = closest distance, red = furthest distance, yellow = closest corner distance