began work on coordsAtDistance, working for distance 1 and 2
finish coordsAtDistance function
minor cleanup