public void movePegs() {
        x.centerX = centerX - Peg.width;
        z.centerX = centerX + Peg.width;
        y.centerX = centerX;

        x.centerY = centerY;
        z.centerY = centerY;
        y.centerY = centerY + Peg.height;
    }