doReset("Initial", true);
while (totalLength < length) {
int taken = doGreedyRandomActionOrReset(rand, true);
if (taken < 0) {
System.out.println("reset state coverage");
state.clear();
}
else {
totalLength++;
if (state.getDetails().get(getCurrentState()) > 1) {
doReset("found loop", true);