@bplus Your square outlines show a pattern . Was thinking on how to get the maze itself to be up, down, left, right instead of diagonal. If the squares could be rotated by 45 degrees then the pattern could be applied and the result should be a 45 degree rotated maze.
Your program shows that 1, -1 encodes the diagonal components in the squares.
Thanks for the solution to the problem . I'm sure it is doable now