/**
  * Prints an ASCII representation of a specified {@code CellGrid} object and a path <br>
  * specified in an {@code MyArrayList} list.
  *
  * @param grid the {@code CellGrid} object to be printed.
  * @param path the {@code MyArrayList} list containing the path to be printed.
  */
 public static void printGridWithPath(CellGrid grid, MyArrayList<Cell> path) {
   for (int i = 0; i < grid.getRowLength(); i++) {
     for (int j = 0; j < grid.getColumnLength(); j++) {
       System.out.print((path.contains(grid.getCell(i, j))) ? "• " : grid.getCell(i, j) + " ");
     }
     System.out.println();
   }
 }