Mapgen

pls dont touch its not functional yet and still needs writing to file and like a lot of fixing but the base logic is here and thats the hard part