public void surrender()
	{
		log.emit("Gracz "+currentUnit.getOwner().getColor().name+" poddał się");
		for (GroupOfUnits u: currentUnit.getOwner().getUnits()) {
			units.remove(u);
			
		}
		currentUnit = units.peek();
		finishBattle();
	}