Completed the grid generator with walls