added map Generator funtionality

is not working as intended i'll have to debug it more later