and thus entering they occupied

Solution 1:

I think "entering" should have been followed by a comma: "and thus entering, they occupied every part of the plaza." "Thus entering" is an absolute construction. It has the force of an adverbial subordinate clause. Here, it is similar to saying "while entering in this fashion".