Headley scores on passed ball in 9th, Yankees beat Texas 2-1

New York Yankees' Jacoby Ellsbury (22) celebrates after Chase Headley, left, slid past Texas Rangers relief pitcher Tony Barnette, right, to score the game winning run in the ninth inning of a baseball game Thursday, June 30, 2016, in New York. Headley scored on a passed ball and the Yankees won 2-1. (AP Photo/Frank Franklin II)
Frank Franklin II/AP

NEW YORK (AP) Chase Headley scored on a passed ball with two outs in the bottom of the ninth, and the Yankees won in their final at-bat for the second straight game to beat the Texas Rangers 2-1 on Thursday afternoon.

Four New York pitchers combined to strike out 16 Rangers as the teams split the four-game series. Didi Gregorius, who had the winning home run Wednesday night, hit a solo shot in the fifth to tie the score after Shin-Soo Choo homered to lead off the game.

Tony Barnette (5-3), the third Rangers reliever of the afternoon, walked Headley to lead off the bottom of the ninth. With runners on second and third and two outs, his pitch got through catcher Robinson Chirinos and Headley just beat the throw.

Aroldis Chapman (2-0) earned the win after pitching a scoreless ninth.