Terrain Fixes

Improved terrain stuff
Fixed negative perlin glitch