fix random dungeon algorithm (make depth - first - tree)