makeWalls method for addition of walls at the edges of the space