def build_maze(raw_maze):
    """
    Builds the 2D-list representation of a maze from its string form.

    Args:
        raw_maze: the maze in its string form as read from the user or its file
    
    Returns:
        The 2D grid that represents a maze
    """
    grid = raw_maze.splitlines()
    for i in range(len(grid)):
        grid[i] = list(grid[i])
    return grid