found (and resolved) a bug in the "computeMapsDistance" function.