Terrain generator changes

Added fog to the terrain and modified the generation algorithm.