New environment spawning logic