To win, the majority of the states have a system that gives all the electors votes to the winning candidate except Maine and Nebraska having their own way of proportional representation which is explained in source 1.