private static void makeArray(int array[][]) {
        Random generator = new Random();
        for (int i = 0; i < array.length; i++) {
            for (int j = 0; j < array.length; j++) {
                array[i][j] = generator.nextInt(8);
            }

        }
    }