As a mage-in-training, youve accidentally converted a patch of harmless pumpkins into evil (you can see it in their eyes) magical jack-o-lanterns. Convert them back into pumpkins - before things get even more out of hand.
Your ill-conceived spell-casting has given you the ability to tap a jack-o-lantern and turn it and any adjacent jack-o-lanterns back into pumpkins (that much, at least, youve managed). But your lack of focus and control also seems to convert any adjacent pumpkins into entirely new jack-o-lanterns.