he was using Stem Cells.
Stem cells are blank cells, which take the characters of whatever cells they are areound.
Cartman got the idea that if he put a bunch of Stem Cells next to a Shakeys Pizza they would make themselves into another Shakeys Pizza and he was right
for more on Stem Cells go
here