fixed bugs when constructing a tower out of grid