Justin Upton’s tie-breaking homer helps Tigers beat Twins