refined buildTerrain() to more accurately match the fractal lines