public void run() {
        setSizeField();
        array = new ButtonArray(field.sizeField);
        setBounds(500, 300, 500, 500);
        this.setLayout(new GridLayout(field.sizeField, field.sizeField, 5, 5));
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        field.initField();
        Check check = new Check();
        for (int i = 0; i < field.sizeField; i++) {
            for (int j = 0; j < field.sizeField; j++) {
                this.add(array.getButton(i, j));
                array.getButton(i,j).addActionListener(new ButActListener());
            }
        }
        setVisible(true);
    }