How to get out of the maze?