residual status constants
more thorough commenting of ai scoring