Magic finish lifts Marblehead over Peabody