renamed buildBuildings, added team parameter