private static void snake(int аrray[][]) {
        int step = 1;
        int row = (аrray.length / 2);
        int col = row;
        System.out.println("Обход по с пирали, начиная с центра :");
        while (step < аrray.length) {
            for (int i = col; i > (col - step); i--) {
                System.out.print(Integer.toString(аrray[row][i]) + " ");
            }
            col = col - step;
            for (int i = row; i > (row - step); i--) {
                System.out.print(Integer.toString(аrray[i][col]) + " ");
            }
            row = row - step;
            step++;
            if (step < аrray.length) {
                for (int i = col; i < (col + step); i++) {
                    System.out.print(Integer.toString(аrray[row][i]) + " ");
                }
                col = col + step;
                for (int i = row; i < (row + step); i++) {
                    System.out.print(Integer.toString(аrray[i][col]) + " ");
                }
                row = row + step;
                step++;
            }
        }
        for (int i = col; i > (col - step); i--) {
            System.out.print(Integer.toString(аrray[row][i]) + " ");
        }

    }