Twins take dramatic win over White Sox