Yankees wrecked by former castoff’s homer in 12th