The dynamical cooperative lamb shift in a system of two-level atoms in a sphere in the scalar photon theory