chainingMushrooms function