made block avoidance less infinite-loopy

sorry about committing directly to master