Another iteration of improved spawning AI. 3-state system implemented.