1.what is the input array looks like
- how it is initiated
- what value is space
- what value is wall
- what value is door or opening in wall (start-end points for your path)
2.conditions (if)
- some compilers do not doing computation priorities for boolean operators correctly
try to add () where they should be ...
//if(uX == xEnd && uY == yEnd) if((uX==xEnd)&&(uY==yEnd))
3.neighbour constrains
- you are ignoring neighbours outside range x: < 0,70 ) y: < 0,150 )
- should not be that upper limit replaced by your room/maze size?
- if your room is smaller then the path can go the wrong way around your room ...