allowing for 0 visited actions
modifying affordance rtdp to work with programmatic hard affordances