Good amount through the depth first searching function