Added center of mass calculation to choose best mine.