public ButtonArray(int sizeField) {
        this.graphic = new ArrayList();
        for (int i = 0; i < sizeField; i++) graphic.add(new ArrayList<Button>());
        for (int i = 0; i < sizeField; i++) {
            for (int j = 0; j < sizeField; j++) {
                graphic.get(j).add(new Button("", i, j));
            }
        }
    }