using object instead of array for players connected