Svenske William Nylander gjorde det avgörande målet när hans Toronto besegrade Philadelphia med 4–3 i NHL-ishockeyn natten mot fredagen.