@Override
	public void actionPerformed(ActionEvent e) {
		if((e).getSource() == view.getButtons()[CANCELMOVE]){
			view.setVisible(false);
			model.getMove().resetTerritories();
			model.nextPhase();
		}else if((e).getSource() == view.getButtons()[MOVE]){
			view.setVisible(false);
			model.getMove().moveUnits(view.getSlider().getValue());
			if(model.getBattle().shallMove()){
				model.getBattle().shallNotMove();
			}
			
		}else if((e).getSource() == view.getButtons()[SLIDERMINUS] && view.getSlider().getValue() > 1){
			view.getSlider().setValue(view.getSlider().getValue() - 1);
		}else if((e).getSource() == view.getButtons()[SLIDERPLUS] && view.getSlider().getValue() < view.getSlider().getMaximum()){
			view.getSlider().setValue(view.getSlider().getValue() + 1);
		}
	}