Modified mazeArray so Main works