maze is read in and identifies entrance and exit