private float distanceSquared(MovingObject p1, MovingObject p2) { return(Math.Abs(p1.location.X - p2.location.X) + Math.Abs(p1.location.Y - p2.location.Y)); }