Smoothing and Regeneration

Implemented smoothing and regeneration of the terrain with both
smoothing and non smoothing.