public void closeDoor(String name, InternalDoor door) {
		Avatar a = null;
		for(Avatar b: avatars){
			if(b.getName().equals(name)){
				a = b;
			}
		}
		if(a!= null){
			String locName = a.getLocationName();
			String doorName = door.getName();
			Location l = locations.get(locName);
			for(GameObject g: l.getAllObjects()){
				if(g.getName().equals(doorName)){
					InternalDoor d = (InternalDoor) g;
					d.setLocked(true);
				}
			}
		}
	}