the idea is that you would somehow cache the calculations until they needed to be recalculated. if you can tell when a brick is removed or added, you can tell the system it needs to recalculate stuff, instead of recalculating every frame when you don't need to. of course, there are more things to consider than just that because you have all sorts of other objects and cases in the mix as well