private void getConnection(Element connectElement)
	{
		String room1Name=""; 
		String room2Name="";
		String exit1="";
		String exit2=""; 

		Element el;

		NodeList nl = connectElement.getElementsByTagName("room1");
		if(nl != null && nl.getLength() > 0) 
		{
			el = (Element)nl.item(0);
			room1Name=el.getAttribute("name");

			nl = el.getElementsByTagName("exit");
			if(nl != null && nl.getLength() > 0) 
			{
				el = (Element)nl.item(0);
				exit1=el.getAttribute("type");
			}
		}


		nl = connectElement.getElementsByTagName("room2");
		if(nl != null && nl.getLength() > 0) 
		{
			el = (Element)nl.item(0);
			room2Name=el.getAttribute("name");

			nl = el.getElementsByTagName("exit");
			if(nl != null && nl.getLength() > 0) 
			{
				el = (Element)nl.item(0);
				exit2=el.getAttribute("type");
			}
		}



		Room room1=rooms.get(room1Name);
		Room room2=rooms.get(room2Name);

		room1.addExit(ExitDirection.parse(exit1),room2);
		room2.addExit(ExitDirection.parse(exit2),room1);

	}