Fixed direction processing heuristics

still basic, but works every time now. yay!