Um, if nobody gets an electoral majority it goes to the House and they vote by state. Senate similarly picks the VP, except it's every individual senator. SCOTUS isn't a factor unless you get stupid counting stuff, which I will grant has a high probability of occurring but beyond that...