Flyers end three-game skid with win over Hurricanes