I don't think he ever intended to win the nomination, until it became apparent that he was going to, willy-nilly. Right from the outset he positioned himself for justifying a third-party run, and I'm sure the only reason was so Hillary could win the Presidency.