losen the draw and fall algorithm of the castle