Colored cubes are being stacked on one end of a large block, consisting of seven cubes stuck together, as shown in the picture below.
What is the greatest number of blocks you can stack on the end (including the two pictured) without having the whole structure tip over?
Details and assumptions