Fewest possible breaks in yarn?

Would all of you “seasoned” knitters please take a look at this Baby Jester Hat pattern?

I have knitted the tube, and am about to start on the kitchener st & I-cord business at the top…I am wondering how I might finagle this to end up with the fewest number of ends to weave in…

Never mind…I figured it out.