if the agent stops moving, it sends a failure msj

The implementation of this is a little bit buggy