is elected after winning a majority of electoral votes, not the popular vote. In swing states like Florida or Ohio, electoral votes can be decided by a few hundred voters.
   
Is this legal?
Legality is still in question, but vote swapping may not be against the law because votes are "paired," not sold.