Emergent properties arising from spatial heterogeneity influence fungal community dynamics