a method to generate random dungeons or grid-based worlds