Maze sovled with stack