consider healing teammates if no good attacks, prioritize health over combat, add tree type, restructure safe moves function