And I thought it was by appealing to the largest amount of people who actually vote.
That's not quite true. The presidential election is actually decided by the electoral college (don't let them lie to you) and not by the people. The electoral college swings towards popular vote most of the time, but in certain cases, like the 2000 election, it has gone against.