+
+ for(E ex : (!swap ? right : left)) {
+ if (e.next.isBoundTo(ex.next)) {
+ System.out.println("hit!");
+ }
+ }
+ }
+ public boolean isBoundTo(E e1, E e2) {
+ if (left.contains(e1) && right.contains(e2)) return true;
+ if (left.contains(e2) && right.contains(e1)) return true;
+ return false;