dungeon crawler in JS