Prevent diagonal turns around obstacles