Pull agent creation into the generic component.
Ball bounces off the right wall.