It's the electorial votes that decides the election. Not always the popular vote.
Electorial votes are equal to the number of senators & representatives in the US congressional delegation plus a number of votes equal to the number of its congressional districts.
This makes the election a process based on the number of electorials deciding who is to get into office.