new output case, distance from a to e to b to c to d
gotta take a quick break