A stripped fumble on a two-point attempt was the decisive play in San Jose State’s wild 54-52 double-overtime loss to Washington State on Friday night in Pullman, Wash.

After interceptions by both teams in the first overtime period, the two sides exchanged touchdowns in the second, with Washington State scoring the first one and then converting a two-point try.

The Spartans responded with a TD but failed to complete their two-point conversion attempt as quarterback Emmett Brown, a transfer from Washington State, was sacked by his former college roommate, edge rusher Quinn Roff, who powered around the offensive line for the clinching play.

Roff forced the ball out and his teammates pounced on it, ending one of the wildest games of the college season.

“For my roommate to make the play at the end on me, obviously it’s bittersweet,” Brown said.

Both offenses combined for 1,118 yards and the 106 points, not exactly what Spartans linebacker Jordan Cobbs expected.

“That environment, that crowd was ridiculous,” Cobbs said.

SJSU coach Ken Niumatalolo, who suffered his first loss with his new school after opening the season with three victories, mentioned postgame how the Spartans entered the night as 13-point underdogs.

“Nobody gave us a chance,” he said.

Here are the takeaways from an incredible night in the Palouse:

SO CLOSE TO VICTORY >> On fourth-and-10 from the Washington State 20, Brown rolled to his left and found wide receiver Treyshun Hurry in the back of the end zone for a touchdown that gave the Spartans the lead with 26 seconds to go.

A pass to Nick Nash on the two-point play stretched the advantage to three.

But Washington State’s John Mateer simply was too good for the Cougars (4-0).

On a night in which the quarterback passed for 390 yards and four touchdowns and ran for 111 yards and another touchdown, he was at his best in the closing seconds of regulation. He led the Cougars on a desperation drive to set up a 52-yard field goal as time expired.

Mateer’s improvisation broke down SJSU’s plans.

“You could do everything right, you could be in the right spot and a player like that, with his legs, can just make something out of nothing,” Cobbs said.

RUN GAME steps up >> San Jose State running back Floyd Chalk IV had his best game of the season, scoring two touchdowns on 94 yards rushing. His highlight came in the first quarter when he ran for a season-best 66 yards on the Spartans’ second offensive play.

SJSU averaged 58.3 yards rushing per game entering the night.

“We just knew we had to get it going,” Niumatalolo said about the run game. “With Nick (Nash), you know people are trying to devise coverages to take him away.”

Bold special teams calls >> In the first quarter, after scoring their first touchdown, the Spartans went for a surprise on-side kick. Freshman kicker Mathias Brown, who normally doesn’t handle kickoff responsibilities, set up SJSU with another offensive possession.

SJSU also faked a punt on fourth-and-2, with a direct snap to linebacker Jordan Pollard.

Keeping the ball out of Mateer’s hands was the main reason for the calls, according to Niumatalolo.

“We were going to be aggressive, but not reckless,” the coach said. “These are all calculated things.”

NASH gets help >> Nash (16 receptions for 152 yards and two touchdowns) found himself with the best receiving statline for the Spartans for the fourth straight week.

He caught three passes for 68 yards on the first drive of the second half, highlighted by a 43-yard reception and a 19-yard touchdown after a quiet first half.

Hurry, who hauled in the game-tying touchdown, finished with 66 yards on three receptions. Justin Lockhart added 74 yards on four grabs.

UP NEXT >> The Spartans’ bye next week precedes a Nevada matchup at home on Oct. 5.

“Emotionally and physically our kids are drained right now, so we gotta rest,” Niumatalolo said. “We’re beat up and it couldn’t come at a better time for us.”