is broken.  Need to calculate how far away an x,y is from the adjoining cells.