Redundant code removed in terrain
Terrain bug fixed