Added margin of victory calculation.