Map generator refactor

the intentions are:
1) fix the 'single use' cave map generator.
2) allow to pass a (platform independent) seed to all map generators