added straight line distance logic (dog brain)