Collect data on failures and resets

Prior to this commit, we were not collecting any data on how many
times the agent must reset or how many times it fails to find a path
using reorientations reset.

Now, this data is being collected and printed with the rest of the data.