public Edge getEdge(Tile t1, Tile t2, Direction d1) {
		Edge newEdge=null;
		
		if (type.endsWith("Door")) {
			
			String keyName = getDatumValue("Key Name");
			Item key = new Item(keyName, 1);
			
			newEdge = new Exit(t1, t2, true, d1, d1.getOppositeDirection(), key);
		}
		if (type.endsWith("Wall")) {
			newEdge = new Edge(t1, t2, false, d1, d1.getOppositeDirection());
		}
		
		return newEdge;
	}