Refactored switchBiome and coworking funcitons in BiomeManager