Switched to building the terrain map only once and storing it as a
surface
added example main that ties it together