fixed total distance from other animal formula to take into account diagonal movement