Updated terrain.py