private boolean parseRooms(Document doc)
	{
		int x, y;
		Tile elevatorTile = null;
		NodeList nodes = doc.getElementsByTagName(XmlTag.ROOM_SECTION.toString());
		NodeList rooms = ((Element)nodes.item(0)).getElementsByTagName(XmlTag.ROOM.toString());
		for(int room_num = 0; room_num < rooms.getLength(); room_num++)
		{
			Element room = (Element) rooms.item(room_num);
			NodeList tiles = room.getElementsByTagName(XmlTag.TILE.toString());
			Room r = new Room();
			//is elevator room?
			String roomType = room.getAttribute(XmlTag.TYPE.toString());
			for(int tile_num = 0; tile_num < tiles.getLength(); tile_num++)
			{
				Element tile = (Element) tiles.item(tile_num);
				x = Integer.parseInt(tile.getAttribute(XmlTag.X.toString()));
				y = Integer.parseInt(tile.getAttribute(XmlTag.Y.toString()));

				Tile t = new Tile(new Point(x, y), r);
				if(level.setTile(x, y, t))
				{
					if(tile_num == 0 && roomType.equalsIgnoreCase(XmlTag.ELEVATOR.toString()))
					{
						elevatorTile = t;
					}
					r.addTile(t);
				}
				if(elevatorTile != null)
				{
					//set the room as an elevator
					level.setElevator(r, elevatorTile);
				}
			}
		}
		return (elevatorTile != null);
	}