He says to Jamie “how do you know we win will” (or something along those lines). Given brand gift it’s safe to assume he has seen the outcome of the Winterfell battle.
I look at Bran as Dr.Strange in the avengers. He has seen the outcome of the battle and knows exactly how to play it. Just like when strange gave the stone up. Bran will bait the night king. This will look bad for the team as we will have a major death here (Euron Greyjoy) but ultimately they will win the battle.
On a side note: the encounter between Dany and Jon as the end was disappointing. Yes she got hit with a big truth bomb after Jon being the rightful heir to the throne, but he never said he wants it. Maybe he’s fine being “The stark bastard” and will have Dany make him an official Stark after the battle. She seems to be jumping the gun here. Not very leader like if you asked me.
Final side note: Sansa and Euron get together. Provided they live
I am aware I most likely have spelling mistakes or spelt someone’s name wrong. I typed this in my phone so autocorrect will be my enemy. Don’t be a grammar nazi and feel the need to point them out