private void updateGrid(ClientUI client) {
		Iterator<Integer> iter = client.net.getTerritoriesLayout().keySet().iterator();
		TerritoriesLayout territories = client.net.getTerritoriesLayout();
		while (iter.hasNext()) {
			Integer key = iter.next();

			Button button = client.buttonsMap.get(territories.get(key).getId());

			PlayerColor owner = territories.get(key).getOwner();
			int unitNumber = territories.get(key).getUnitNumber();
			int id = territories.get(key).getId();

			button.setText(mapButtonMessage(id, owner, unitNumber));
			if (client.net.getColor() != owner)
				button.setEnabled(false);
			else
				button.setEnabled(true);
		}
	}