Function resetAgentPlayDebug