minor changes to generateTerrain (experimental)