Color Keeper explainer

Why or hwo does the yellow block get drawn at the end?

I get why the first one is drawn as it is initially stated, likewise the blue and green, but why is the yellow block drawn at the end.

No good running through the exercises if they are not explained fully