overloaded map_gen_maze
reimplemented the maze algorithm.
updated linux build.