Brick detection iteration