first simple draft of Spawner class.

Also remove usless repeated agent state pushing.