public CellModel(Statistics statistics, BoardModel model){
        this.model = model;
        cells = new CellContext[model.getHeight()][model.getWidth()];
        for (int i = 0; i < model.getHeight(); i++) {
                for (int j = 0; j < model.getWidth(); j++) {
                        cells[i][j] = new CellContext();   
                        cells[i][j].registerObserver(statistics);                     
                }
        }
    }