Generates until all branches are dead, creates initial branch