Added leftof and rightof heuristic again