fixed divide by 0 crash bug and now AI pauses too