You want the arithmetic mean of all the players x and z coordinates: https://en.m.wikipedia.org/wiki/Centroid#Of_a_finite_set_of_points