erlang port to generate rogue-like maps