AIcheck function DONE! + minor fixes

This was a tough one...
"AIcheck" function can be found in shot_formula.c :)