Added MaxRecovery parameter to set the max number of recovery attempts before giving up.
Infinite = -1
When doing tests, MaxRecovery = 0 (except for the hills test)

Signed-off-by: Darpa Tech 3 <darpa3@SMILe03.(none)>