TODOs:
- logic for determining the number of wires in a grid needs to get changed to account for more complex wire configurations
- logic for connecting last wire to grid needs to get updated such that it works in all cases
- logic for pairing wires should (ideally) be combined with the logic for partial routing. It should be the same thing but some weird bug is keeping this from happening.
todo: allow all orientations of connectors to work (currently only works when connector is on the right of grids (for horizontal) or on the bottom of grids (for vertical)