SimWorld  isOptimalAgent method added