fixed a bug in InfantAI

fixed a bug and have some debugging prints in there.