public IterativeSolution(Peg x, Peg y, Peg z, int diskCount) {
        this.x = x;
        this.y = y;
        this.z = z;

        this.diskCount = diskCount;

        pegs = new Stack<IPaintable>();
        pegs.push(new Cycle(x, y, z, diskCount % 2));
    }