as the red veins of lava flowed , they gathered dirt and stones , and the mixture churned , forming whirlpools until the molten rivers separated themselves into ever-spinning mounds of crimson mud , the outer layer thickening into a membrane .