Added a getNearestPlayers function in PlayerUtil