Terrain code working like 90% from how it should