added some logic for tower building