public void act()
    {
    	// If "exposed to sun," behave like a tree
    	if(getGrid() != null || getContainer() != null && // in grid or in pot
           getContainer().getGrid() != null) // its pot is in the grid (not in another container)
    	{
    		System.out.println(getName() + " is acting.");
    		attemptToGrowFruit();
    		attemptToGrow();
    	} // end if exposed to sun
    	
    	for(Fruit fruit : new ArrayList<Fruit>(getFruits()))
    	{
    		fruit.act();
    	}
    	
        age();
        System.out.println("Finished acting.\n");
    }