Your goal is to reach the end of the level before you turn into a tree, to do this avoid direct sunlight (because sun is good for trees) and rest near other trees (because the roots consume all the nutrients from the soil).
The failing state is becoming a tree before reaching the perfect place, but that tree will provide shadow for your next try