Revised version of the terrain generator