How does it 'work'? Does it elect the person most Americans want? No. Does it elect the person who wins a majority of the states? No. Does it force candidates to give attention to not just the great cities but to the entire country? No. Hell, no. The USA elects every single position in the legislative, executive or juridicary branches on every level of government by majority vote, except the presidency - then, suddenly, argueing that the most important position should also be elected by the majority becomes ridicious.
Please, enlighten me on how the Electoral College 'works', apart from that it happened to elect your favorite candidate this time.