Hi, thanks! I'm glad you liked it. Yes, the game was based a bit on some existing games, including Nitrome, Undertale, and Pico's.
And regarding your problem with the maze... well, there's a door just like the entrance at the top, next to a hallway. That's the exit. I hope this helped, and I wish you a good day, afternoon, or night!