Fixed index error in TowerGenerator.