Buffalo completed a third-period comeback in Toronto on Thursday night, beating the Maple Leafs 5-4 in overtime.

Owen Power scored the winner at 3:14 of overtime, taking a feed from Jack Quinn. Quinn had scored twice earlier, and Dennis Gilbert and Mattias Samuelsson scored in the third period to tie the game 4-4. Ukko-Pekka Luukkonen stopped 26 shots.

Kirill Marchenko recorded the fifth hat trick of his career in his 300th NHL game, his third goal putting Toronto ahead 4-2 late in the second period. Auston Matthews also scored for the Leafs, and Sergei Bobrovsky made 29 saves.

John Tavares had two assists before leaving early in the third period after a collision, appearing to favour his left leg. Toronto hosts the New York Islanders on Saturday, while Buffalo visits Montreal.