int until = data.getUntilPosition();
// if one of those coordinates equal the actualCoord,
// that
// means, this rings is the one to be modified.
if (actualCoord.equals2D(inputList.get(indexKey)) && !(usedIndexes.contains(indexKey))) {
try {
result = improveTheRing(i, indexKey, n, ringCoords, forward, until);
usedIndexes.add(indexKey);
} catch (InvalidDistanceException ide) {
// it has encounters difficulties during the