UNC upsets Duke, plays a villain by spoiling Coach K’s last home game