Added unionObject, refactored terrain rendering