private static boolean printIteration(int[][] array, int y, int x, int step) {
        boolean isPrinting = false;
        for (int z = y; z > y - step; z--) {
            if (checkBoundaries(array, z, x)) {
                isPrinting = true;
                System.out.print("\t" + array[z][x]);
            }
        }
        y -= step;
        for (int z = x; z > x - step; z--) {
            if (checkBoundaries(array, y, z)) {
                isPrinting = true;
                System.out.print("\t" + array[y][z]);
            }
        }
        x -= step;
        step++;
        for (int z = y; z < y + step; z++) {
            if (checkBoundaries(array, z, x)) {
                isPrinting = true;
                System.out.print("\t" + array[z][x]);
            }
        }
        y += step;
        for (int z = x; z < x + step; z++) {
            if (checkBoundaries(array, y, z)) {
                isPrinting = true;
                System.out.print("\t" + array[y][z]);
            }
        }
        return isPrinting;
    }