This is a problem in equilibrium. Moving each of the identical bricks, try to reach the maximal possible displacement L = L_{max} without disturbing the equilibrium of the pile. Try to solve this problem theoretically, and them check your answer using the model.