Added in patterns for going up/down depending upon directions (eg 1->2, 2->3, 3->1) and (eg 1->3, 3->2, 2->1)