I beg to disagree. It was telegraphed from the start and the easiest and least interesting way to resolve the battle. 99% of viewers could have told you going into the episode that it would be resolved by Magical Transporting Littlefinger beaming in his army in the 12th hour.