Seemed to me that at the end of the fight all of Ramsay's men were dead and he was surrounded, yet he still had time to take out a key and spend like ten seconds unlocking a single cage, presumably so the Ironborn could be chased off by dogs or something.