@Override
	public void update(Observable ml, Object e) {
		Warborn model = (Warborn)ml;
		
		if(model.getState() == 2 && model.getPhase() == 1){
			this.setVisible(true);
			Battle battle = model.getBattle();
			t1 = battle.getFirstTerritory();
			t2 = battle.getSecondTerritory();
			lbBattle.setText("Battle!");
			btOneAttack.setVisible(true);
			btAutoAttack.setVisible(true);
			btRetreat.setText("Retreat");
			lbAttacker.setText(t1.getName());
			lbDefender.setText(t2.getName());
			lbAtkTroops.setText(t1.getNbrOfUnits() - 1 + "");
			lbDefTroops.setText(t2.getNbrOfUnits() + "");
			this.setLocation((int)((model.getWidth()/2) - (this.getWidth()/2)), (int)((model.getHeight()*0.7)/2) - (this.getHeight()/2));
			if(t1.getNbrOfUnits() == 1 || t2.getNbrOfUnits() == 0){
				btOneAttack.setVisible(false);
				btAutoAttack.setVisible(false);
				btRetreat.setText("Continue");
				if(t1.getNbrOfUnits() == 1){
					lbBattle.setText("Defeat!");
				}
				else{
					lbBattle.setText("Victory!");
				}
			}
		}
	}