In the case of such a tie when the electoral votes are cast in state capitals on December 7, the Constitution says the newly-elected House of Representatives elects the president, with each state delegation casting one vote, and the Senate elects the vice president.
FORBES: Close Election Hysteria: Let's Not Pick Our President In The Courts