def load_cardinals(data, room_names):
    """
    Loading the room cardinals.

    Parameters:
        data(dict): Nested dictionaries containing
            all information of the game.
        room_names(list): List containg room names.

    Returns:
        room_cardinals(list): Returns list of room neighbors.
    """
    room_cardinals = []
    for name in room_names:
        cardinal = data['Rooms'][name]['Neighbors']
        room_cardinals.append(cardinal)
    return room_cardinals