replacing old spritegroup with the new one