Added the populate ahead function
 On branch ai_restructure
	modified:   src/ai.c
	modified:   src/ai.h