@Override
	public void update(Observable o, Object arg1) {
		if (o == model){
			view.displayData(model.getData());
			view.displayScore(model.getScore());
			view.displayHint(model.getHint());
			
			if(model.isSucceed()){
				view.gameOver(true);
			}
			if(model.isStuck()){
				view.gameOver(false);
			}
			
		}
		if (o == view){
			if(arg1 == "save"){
				model.setFileName(view.getFileNamePath());
			}
			if(arg1 == "load"){
				model.setFileName(view.getFileNamePath());
			}
			if(arg1 == "solve"){
				model.setDepth(view.getDepth());
				model.setHintsNum(view.getHintNum());
			}
			
			model.doUserCommand(view.getUserCommand());		
		}	
	}