It is important to remember that the President is not chosen by a national popular vote. The Electoral College vote totals determine the winner, not the statistical plurality or majority a candidate may have in the national popular vote totals. Electoral votes are awarded on the basis of the popular vote in each state.
Hopefully that helped.