yeah. thats right.. the gates open when someone uses MOVE or when the monsters attack someones towers.
both events, a monster is ordered to go directly into the middle so if gates were closed, they would continue attack.
I got an idea. Instead of ordering the monster to go to the middle, it could first check if there were monsters around the selected monster. If there were, the monster would start following the other monster and that way, go to the middle properly.