Fixed bug in nearest sheep calc when all sheep in pen