def drawBorder(grid: list) -> list:
    """Draw a border around the maze"""
    for i, x in enumerate(grid): # Left and Right border
        x[0] = x[len(grid)-1] = (20,20,20)
        grid[i] = x
        
    grid[0] = grid[len(grid)-1] = [(20,20,20) for x in range(len(grid))] # Top and Bottom border
    return grid