Added mapgen into main init and render pass