Pittsburgh Pirates rally to defeat New York Mets, 6-5