finished first iteration of terrain.h