refactored recursion and more colors and growing effect for the trees