public double [] meanDistanceFromQueen(){
        double [] values = new double[4];
        
        double a = 0;
        double b = 0;
        double c = 0;
        double h = 0;
        int n = 0;
        
        for (int i = 0; i < xDim; i++) {
            for (int j = 0; j < yDim; j++) {
                for (int k = 0; k < zDim; k++) {
                    if(world[i][j][k].getBlockState() == 2){
                        n++;
                        a = a + Math.abs(world[i][j][k].getXPos()-10);
                        b = b + world[i][j][k].getYPos()-1;
                        c = c + Math.abs(world[i][j][k].getZPos()-10);
                        h = Math.pow(a,2)+Math.pow(b,2)+Math.pow(c,2);
                    }
                }
            }
        }
        
        
        if(a > 0) a = a/n;
        if(b > 0) b = b/n;
        if(c > 0) c = c/n;
        if(h > 0) h = Math.sqrt(h)/n;
        
        values[0] = a;
        values[1] = b;
        values[2] = c;
        values[3] = h;
        
        return values;
    }