def makeGrid(width, height):
    newgrid = [[0 for x in range(height)] for y in range(width)]
    for i in range(len(newgrid)):
        for j in range(len(newgrid[i])):
            if ((i == 0) or (j == 0) or (i == (len(newgrid) - 1)) or (j == (len(newgrid[0]) - 1))):
                newgrid[i][j] = 1
    return newgrid
def makeGrid(width, height):
    newgrid = [[0 for x in range(height)] for y in range(width)]
    for i in range(len(newgrid)):
        for j in range(len(newgrid[i])):
            if ((i == 0) or (j == 0) or (i == (len(newgrid) - 1)) or (j == (len(newgrid[0]) - 1))):
                newgrid[i][j] = 1
    return newgrid