Change the terrain managing function to add 3 layers.