Improve probability-density algorithm by taking into account sunk ships