Basic AI implemented.