Modified Terrain class

Implemented into main, now working