Some more AI refinements.

Signed-off-by: Christian Gunderman <gundermanc@gmail.com>