private void initFields() {
        fields = new Field[getWidth()][getHeigth()];
        for (int i = 0; i < getWidth(); i++) {
            for (int j = 0; j < getHeigth(); j++) {
                Field field = new Field();
                fields[i][j] = field;
            }
        }

    }