How Obama lost the 2012 presidential contest