Sets turn_flag to 0 if distance are the same on both sides