void generateEdges() {
        // Generate all vertical edges in the maze
        int index = 0;
        while (index < this.cells.size() - this.size) {
            edges.add(new Edge(this.cells.get(index),
                    this.cells.get(index + this.size)));
            index = index + 1;
        }
        // Generate all horizontal edges in the maze
        for (int ind = 0; ind < this.cells.size(); ind = ind + 1) {
            if (this.cells.get(ind).x % this.size != 0) {
                edges.add(new Edge(this.cells.get(ind),
                        this.cells.get(ind + 1)));
            }
        }
    }