using the branching factor in time management initialized the new variable of time in the end of the iteration to be 0