added ping calculation and keeping track of active players