FEATURE: state changes between searching and attacking
FEATURE: added RunningAverage library