public void processTerritories()
	{

		territories = new ArrayList<Territory>();
		for (Square[] c : squares)
		{
			for (Square s : c)
			{
				if (s.piece == null)
				{
					boolean inGroup = false;
					for (Territory t : territories)
					{
						if (t.squares.contains(s))
						{
							inGroup = true;
							break;
						}
					}
					if (!inGroup)
					{
						Territory t = new Territory(this);
						territories.add(t);
						addToTerritory(t, s);
					}
				}
			}
		}
	}