Pittsburgh Pirates defeat New York Mets, 2-1