The race to 270

A presidential candidate needs 270 electoral votes to win the White House. Most states predictably vote red or blue, but a small handful swing either way and make up the main election battlegrounds. What does it take to win the presidency?