We checked if there is any 180 degree turn in the line