I\'m trying to optimize my critical path. source_and_dest is a list of coordinates, state is a translation from one coordinate to another, and
source_and_dest
state