Two villages in the far northwest suburbs are locked in a border battle over a Wal-Mart store.But before the courts decide if the retailer can swap municipalities, they had to decide if one of the towns could swap judges in the related litigation.An appeals panel this week ruled that East Dundee, which brought the initial suit after Wal-Mart decided to relocate less than 2 miles away to neighboring Carpentersville for a redevelopment project, should be granted a judge substitution.The 2nd District Appellate Court panel …