@Override
	public void update(Observable o, Object arg) {
		if(o==ui){
			int input = ui.getUserCommand();
			switch(input){
			 case 0: {model.moveDown();
			 break;}
			 case 1: {model.moveUp();
			 break;}
			 case 2: {model.moveRight();
			 break;}
			 case 3: {model.moveLeft();
			 break;}
			} 
		}
		if(o==model){
			ui.displayData(model.getData());
			
		}
	}