Implemented prime dungeon generator