How Trump was planning to win elections even if he lost