procedural generation of dungeon in js