"create a function that loops through the players and returns the closest player"