# We have a grid of 1s and 0s; the 1s in a cell represent bricks. # A brick will not drop if and only if it is directly connected to the top of the grid, # or at least one of its (4-way) adjacent ...