fixed a bug where the AI was able to attack an entity in a state that wasn't processed yet
logging of stats for #21