NSW resident wins $50m jackpot