It might be one or other slime mould ... the fruiting bodies ... Myxomycetae to be technical. They used to be classified as fungi but that's quite incorrect ... they are a separate group or (more likely) several unrelated groups. They live most of the time as separate amoeba-like cells, engulfing microorganisms in soil, leaf litter, rotting wood, etc, till some stimulus causes them to "get together" and form the masses we see. Check out Google Images and see if any resemble what you saw.