nice game. I really don't know the coding for dungeon game.... the map, movement, it looks like a very interesting project.
Well, you start here:
https://en.m.wikipedia.org/wiki/Maze_generation_algorithm
Cheers!