public Direction isAnExit(Room room){
        if(exits.containsValue(room)){
            for(Entry<Direction, Room> entry : exits.entrySet()){
                if(entry.getValue().equals(room)) return entry.getKey();
            }
        }
        return null; 
    }