COLLEGE STATION, Texas (AP) - No. 5 Oklahoma State capped a trying week by rallying to win a tough game at No. 14 Texas A&M and stay undefeated.

Now the Cowboys have a much needed open date to recover from a week that began with a thunderstorm-delayed game that ended at 3:35 a.m. Sunday morning and included dealing with the death of the wife of assistant coach Glenn Spencer.

Spencer missed the week of preparation, but rejoined the team Saturday as the Cowboys rallied for a 30-29 win.

"This was a very difficult week for us because of Angela Spencer and it should be, because their family was very special to us," Oklahoma State coach Mike Gundy said. "It affected our staff. It affected our team ... we weren't very good for most of the week. Up until about Wednesday we didn't get much. There wasn't much talk in our staff room, there wasn't much with our team so I was concerned about that."

Oklahoma State's game last week against Tulsa was supposed to start at around 9 p.m., but didn't kickoff until 12:16 a.m. because of storms. The Cowboys' got the 59-33 win in that game, but the delay left the team worn out in the early days of preparing for the Aggies.

It may have spilled over into the first half on Saturday with Texas A&M dominating the opening two quarters en route to a 20-3 halftime lead.

Things were much different after the break and Oklahoma State's uptempo offense left the Aggies struggling. The Cowboys scored 27 straight points in the second half to get the win.

"I thought as they game went on our guys got stronger," Gundy said. "I thought they were breaking on the ball more, their coverage was tighter, they could get their hands up. They put more pressure on the quarterback. I thought our players were in good position and it paid off in the fourth quarter."

The Cowboys will also use the off week to figure out how they'll fill in for two players who suffered season-ending injuries against the Aggies. Starting guard Jonathan Rush has a knee injury and reserve cornerback Devin Hedgepeth injured his Achilles' tendon.

"It's a good time for us to have an open week," Gundy said.

Quarterback Brandon Weeden set school records in yards passing (438), completions (47) and attempts (60) against the Aggies as he improved to 8-0 on the road. He said Saturday's victory over the Aggies was "probably my biggest win."

The Cowboys will need him to keep up his solid play as they look to compete for the Big 12 title. Oklahoma State hosts Kansas after their off week before traveling to Austin to face the 17th-ranked Longhorns.

"This a special win, but it's in the past and we have to start looking to the future," star receiver Justin Blackmon said. "It's a good way to start off Big 12 play."

The Aggies will spend this week trying to regroup and prepare for No. 18 Arkansas after losing their second straight game against Oklahoma State after leading by double digits at halftime.

Texas A&M was done in by four second-half turnovers and numerous penalties after halftime, including some that extended drives for the Cowboys.

"Those stupid penalties are killers," Texas A&M safety Trent Hunter said. "It's uncalled for and ... it's dumb. We just can't have that. We can't have guys like that on our team that are going to keep making mistakes like that."

Texas A&M coach Mike Sherman is confident his team can rebound against Arkansas and isn't worried about this loss carrying over into next week.

"It's not like we haven't been here before," Sherman said. "We've lost a game before ... we've bounced back before and we'll bounce back again. We have to get focused on Arkansas, watch this tape and make the necessary corrections. I don't see things spiraling out of control. It's one game, and we've got to go to the next one."