public Solution(Collection<Node> nodes, int openCount, int closeCount) {
        this.path = Collections.unmodifiableList(new ArrayList<>(nodes));
        this.openCount = openCount;
        this.closeCount = closeCount;
    }