Wainwright outmaneuvers Cubs, Cardinals win 1-0