agent cleaning all dirties using A*