You managed to escape the castle. You reached a mountain pass and at the end of it is a border line of the kingdom. The forest ahead is owned by bandits and in the border, there are some strong guards. You managed to steal a catapult. Use it to destroy the walls quickly. You must reach the border wall and beyond it is an army garrison, which you can use as a base to retake the kingdom.