Ok thank you problem solved ...
But now the same problem appears if the beaver had the misfortune to touch (when it is waiting 3 sec) the tree but the problem does not occur when it does not touch any tree ...
But in any case thank you and why it makes me his with an instance variable ...
Edit: I think I should put a global variable reset somewhere ...