private void linkMesh() {
        for (int i = 0; i < (width); i++) { // row
            for (int j = 0; j < height; j++) { // col
                if (j != 0) submesh[i][j].addNeighbor(this.submesh[i][j - 1]); // North
                if (j != height - 1) submesh[i][j].addNeighbor(this.submesh[i][j + 1]); // South
                if (i != width - 1) submesh[i][j].addNeighbor(this.submesh[i + 1][j]); // East
                if (i != 0) submesh[i][j].addNeighbor(this.submesh[i - 1][j]); // West
            }
        }
    }