Just add conditions for all brick types.
so:
System compare two values : Brick1.count = 0
System compare two values : Brick2.count = 0
System compare two values : Brick3.count = 0
System compare two values : Brick4.count = 0
System compare two values : Brick5.count = 0
System compare two values : Brick6.count = 0
- System goto layout level2
you will only goto the new layout if all these condoitions are met, so if all instances of all bricks are destroyed.