Changed the order to distance to the nearest player