public static void main(String[] args) {
        int length = Integer.parseInt(JOptionPane.showInputDialog("Input the Number (2k - 1)"));
        int intArray[][] = new int[length][length];
        if (length % 2 != 0) {
            makeArray(intArray);
            JOptionPane.showMessageDialog(null, "Take a look at the console!");
            output(intArray);
            snake(intArray);

        } else {
            JOptionPane.showMessageDialog(null, "Wrong Number");
        }
    }