Improved map generation and implemented prototypal inheritance for maps