ARLINGTON (CBSDFW.COM/AP) — Danny Santana had already hit one of the five home runs by the Texas Rangers. With a chance to win the game with two outs in the ninth inning, he lined a ball up the middle and then saw Houston center fielder George Springer on a full sprint toward the ball.

ARLINGTON, TEXAS – JULY 12: The Texas Rangers celebrate a 9-8 win against the Houston Astros at Globe Life Park in Arlington on July 12, 2019 in Arlington, Texas. (Photo by Ronald Martinez/Getty Images)

“When I saw Springer going after it… I think he is going to catch it,” Santana said through a translator. “I’m glad he didn’t.”

The liner tipped off the end of Springer’s glove as the All-Star made an impressive all-out diving attempt, and Elvis Andrus scored from second base to give the Rangers a 9-8 win over AL West-leading Houston on Friday night. They rallied from a four-run deficit after Gerrit Cole struck out 13 in six innings to take over the major league lead.

“That was an amazing feeling, an amazing game all around,” said Ronald Guzmán, whose two-run homer high off the right-field pole in the eighth tied the game at 8. “They hit us, we hit them back. Everything was in there.”

Andrus had a one-out single and a stolen base before All-Star slugger Joey Gallo drew a walk off Roberto Osuna (3-2). Rougned Odor then struck out for the third time before Santana’s game-winning hit.

“It went off the end of my glove,” said Springer, who had been shaded toward left field and had to run a long way to even have a chance. “It’s kind of one of those ones where it’s all or nothing.”

Shawn Kelley (5-2), the fifth Texas pitcher, had a perfect ninth.

Rookie Yordan Álvarez hit two of the four homers for the Astros (57-35), who have come out of the All-Star break with two consecutive losses to the surprising Rangers (50-42). Jose Altuve and Yuli Gurriel, with his 10th homer in 13 games, also went deep.

Cole left with an 8-4 lead and his 10th game this season with at least 10 strikeouts. His 183 strikeouts for the season pushed him two past Washington’s Max Scherzer for the big league lead. Cole allowed more than two earned runs for the first time in a span of nine starts since his last loss May 22.

The Houston right-hander threw 74 of 101 pitches for strikes. Three of the four hits Cole allowed were solo homers to Shin-Soo Choo, Santana and Gallo. Tim Federowicz hit a homer after Cole was done.

“It was like a heavyweight slugfest,” said Cole, who has 42 strikeouts over 22 1/3 innings in four starts against Texas this season. “Came up short, but it was an entertaining game. It was quite a game.”

Choo had a leadoff homer for the Rangers, and Santana’s one-out blast in the second tied the game at 2-2. The next nine outs recorded by Cole, into the fifth, were on strikeouts. The only Texas run in that span was Gallo’s 21st homer leading off the fourth.

“That doesn’t surprise me in this park. That wasn’t a lot to do with the park, though. Their approach was good, they hit the ball when they needed to,” Astros manager AJ Hinch said. “They were tough at-bats. It was kind of a true outcome-type game. They were punching out a ton, they were walking, they were homering and they got the single at the end.”

The Texas Rangers will take on Houston Astros once again tonight at 7:05 p.m. They now have a 50-42 record.

(© Copyright 2019 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)