refactor ai made setup and teardown functions
an ai that can advance and slow down