Maze using array