/**
   * Function that prints all the class variables to the console, including the path traveled by the
   * pointer during the trial.
   */
  public void printInfoWithPath() {
    printInfoWithoutPath();

    System.out.println("The path was as follows:");
    for (int i = 0; i < path.size(); i++) {
      Pixel ponto = path.get(i);
      System.out.println("< " + ponto.getXCoordinate() + " , " + ponto.getYCoordinate() + " > ->");
    }
  }
 /**
  * Auxiliary function that calculates the distance between two points.
  *
  * @param p1 - One pixel.
  * @param p2 - Other pixel.
  * @return The distance, in pixels, between the two given points.
  */
 public static double calculateDistanceBetweenPoints(Pixel p1, Pixel p2) {
   return calculateDistanceBetweenPoints(
       p1.getXCoordinate(), p1.getYCoordinate(), p2.getXCoordinate(), p2.getYCoordinate());
 }