Added Terrain class

Implemented terrain class into main