Rutherford b. Hayes became the U.S. president because