}
color = colorTmp;
}
public void pathCalculation() {
AlgorithmFactory algorithmFactory =
Factories.createFactory(currAlgorithm);
Algorithm algorithm =
algorithmFactory.getAlgorithm(colorSquareArr);
algorithm.calculate();
pathCoordArr = algorithm.getPath();
}