def expand_cube(cube,j):
    """expands a cube along the jth direction by putting in a '-' there """
    res=''
    for i in range(len(cube)):
        if i == j:
            res = res + '-'
        else:
            res = res+cube[i]
    return res