public Peg(String name, int maxDisks, int initDiskCount)
    {
        this.name = name;
        this.maxDisks = maxDisks;

        disks = new Stack<Integer>();
        for (int i = 1; i <= initDiskCount; i++) {
            disks.push(i);
        }

        width = maxDisks * DISK_WIDTH_DELTA + SIDES_MARGIN;
        height = maxDisks * DISK_HEIGHT + TOP_MARGIN;
    }