The States choose the method of choosing their electors and therein lies the Achilles Heel of the Electoral College System. Naturally States in which one party controls the legislature will try and institute a method that assures their party wins all or a large fraction of the States electors. Not all States use the same method of selecting electors . But suffice it to say the choice is subject to heavy gerrymandering in states that choose electors according to congressional districts.Popular vote counts in urban centers do not win General Elections - you need to show up in rural and suburban areas.
Here are excerpts found on Wiki from critiques of the electoral college (https://en.wikipedia.org/wiki/Electoral_College_(United_States)#Appointment_by_state_legislature)
Elections where the winning candidate loses the national popular vote typically result when the winner builds the requisite configuration of states (and thus captures their electoral votes) by small margins, but the losing candidate secures large voter margins in the remaining states.
The United States is the only country that elects a politically powerful president via an electoral college and the only one in which a candidate can become president without having obtained the highest number of votes in the sole or final round of popular voting.
