Auston Matthews had a natural hat trick in the second period and William Nylander had the game-winner as the Toronto Maple Leafs defeated the Philadelphia Flyers 4-3 in overtime.