ANAHEIM, California (AP) — Andrei Markov scored in the sixth round of the shootout as the Montreal Canadiens beat the NHL-leading Anaheim Ducks 4-3 Wednesday for their sixth victory in eight games.

Brendan Gallagher had a goal and an assist for the Canadiens, tying it late in the second period. Max Pacioretty got his 30th goal and captain Brian Gionta also scored in an impressive victory before the arrival of new acquisition Thomas Vanek.

Tim Jackman, Francois Beauchemin and Daniel Winnik scored early goals for the Ducks, who had won three straight. Jonas Hiller made 27 saves in Anaheim's first loss since the Olympic break.

Dustin Tokarski stopped 39 shots in his debut for the Canadiens.

Toronto's Tyler Bozak scored from a penalty shot and then got the winning goal 1:51 into overtime to help the Maple Leafs spoil the New York debut of Martin St. Louis with a 3-1 win over the Rangers.

Bozak got to a loose puck in front that bounced past Rangers defensemen Dan Girardi and Ryan McDonagh and slammed a shot past Henrik Lundqvist to end the Maple Leafs' three-game losing streak and stretch New York's skid to three.

At Philadelphia, Claude Giroux and Jakub Voracek each had two goals, and Michael Raffl and Steve Downie also scored to lead the Flyers past the Washington Capitals 6-4.

Andrew McDonald had an assist in his first game since he was acquired from the New York Islanders. The Flyers won for the seventh time in eight games.

Alex Ovechkin, Joel Ward and Troy Brouwer nearly rallied the Capitals with three straight goals in the third. Brooks Laich also scored.

The Calgary Flames defeated the Ottawa Senators 4-1 after Markus Granlund scored his first NHL goal and fellow Finnish rookie Joni Ortio picked up his first career victory.

Paul Byron, Joe Colborne and Mike Cammalleri also scored for the Flames, and rookie Sean Monahan had two assists. Ortio, making his second start, finished with 30 saves to help Calgary win for the sixth time in its last seven home games.

Kyle Turris scored his 20th goal of the season for Ottawa, which has lost four of its last five.