Tweaked the left and right turn logic