Use <= when comparing distances to give priority to the uppermost duck in the event...