Some work on the method "generateTerrain"

Also created a new method which is not finished yet.