He did it by running to the right of his opponent.
And you KNOW how he will govern. A lot,of his positions were radical leftist. He was farther right on some issues. He is a chameleon.