@Override
    public void reactToChanges(ObservationEvent ev) {
        if (ev instanceof ValidationEvent) {
            ValidationEvent event = (ValidationEvent) ev;
            OptionModel om = Minesweeper.getInstance().getOptionPanel();
            if(event.getValidate()){
                GameDifficulty gD = ngp.getDifficulty();
                int height = cgp.getOptionHeight();
                int width = cgp.getOptionWidth();
                double bombPercentage = cgp.getBombPercentage();
                boolean thorique = cgp.isThorique();
                
                if (gD == GameDifficulty.CUSTOM) {
                    om.reset(width, height, bombPercentage, thorique, gD);
                } else {
                    om.setDifficulty(gD);
                }
                Minesweeper.getInstance().restart();
                
            }else {
                Minesweeper.getInstance().restart();
            }
        }
    }