How Americans won the war