At the inaugural Pac-12 Baseball Tournament, a Saturday affair between UCLA and Oregon State turned into an instant classic and one of the craziest games of the entire season.

It lasted nearly six hours, saw the dueling sides use a combined 16 pitchers, saw 47 runs scored and 53 hits, and featured a walk-off, three-run home run to end things. Oh, and UCLA erased a nine-run deficit in the ninth inning to give itself a chance.

Oregon State went ahead 22-21 in the top of the 10th, and UCLA tied things at 22-all after a bases-loaded balk. Then reserve catcher Tommy Beres stepped to the plate, took a 1-1 pitch well beyond the left-field wall, and chaos ensued at home plate as he rounded the bases to celebrate a 25-22 win with his teammates.

Twenty-four combined players made a plate appearance for the two sides. Every single one of them made it on-base at least once.

The Bruins were led by Kenny Oyama, who recorded five hits in his six at-bats and brought in five runs. Ethan Gourson went 4-for-6 with a walk and five runs scored. Kyle Karros had four hits and three RBIs.

For the Beavers, it was a remarkable day until it wasn’t. Oregon State finished with a school-record 28 hits and a season-high 22 runs scored. Justin Boyd finished with a school-record six hits. Garret Forrester cranked two home runs and had six RBIs. Gavin Logan had five hits and five RBIs.

It entered into the bottom of the ninth with a commanding 21-12 lead.

Then the Beavers’ pitching staff fell apart, allowing four hits, three walks and hitting another batter. UCLA scored the tying run with two outs on the board.