Marco Rossi tied it in the third period, Matt Boldy scored the shootout winner, and the Minnesota Wild rallied to beat the Capitals 4-3 on Thursday night in Washington after Alex Ovechkin moved one step closer to breaking Wayne Gretzky’s NHL career goals record.

Rossi scored with 8:41 left in regulation, 15 seconds after a would-be goal by Washington’s Tom Wilson was disallowed for directing the puck into the net with a high stick. Boldy had the lone shootout goal.

The Wild won their first game without injured captain Jared Spurgeon, who is expected to miss 2-3 weeks after getting slew-footed earlier in the week. Yakov Trenin scored short-handed, Ryan Hartman had his first goal since Nov. 19 and Marc-Andre Fleury made 28 saves in regulation and overtime to help Minnesota improve to 3-1 without leading scorer Kirill Kaprizov.

Ovechkin beat Fleury for his 871st career goal, scoring on him for a 28th time in 47 games against him over the past two decades in the NHL. Gretzky’s record is 894 goals.

Fleury turned aside Ovechkin in the shootout to end his final game at Washington on a high note.

Rangers 2, Bruins 1 >> Mika Zibanejad and Brett Berard scored in the first period, and Jonathan Quick made 32 saves as New York snapped a four-game losing streak. The Rangers won at home for the first time since Dec. 6 as Quick was steady in place of injured starter Igor Shesterkin to get his 399th career victory.

Hurricanes 3, Panthers 1 >> Jaccob Slavin scored the go-ahead goal to lift Carolina over Florida in Sunrise, Fla. Brent Burns gave Carolina a 1-0 lead 35 seconds into the game with a shot that bounced off Florida’s Aleksander Barkov and into the net.

Red Wings 5, Blue Jackets 4 >> Jonatan Berggren scored with 36 seconds left in the third period and visiting Detroit extended its winning streak to three games.

Alex DeBrincat scored and had two assists, and Dylan Larkin and Patrick Kane each had a goal and an assist for Detroit.