Some refactoring

More reuse in the code which places the building on the terrain