fix the wrong size of the array (maze)