format adjusted
reference to getWall() instead of a single integer
added additional println() in printArray() to see different mazes on console