Added a test for verifying the issue of weight being reset when a child node of a RandomizedComposite exits and reenters the tree
Updated the RandomizedComposite node to check whether the whole node is exiting or not to decide whether to remove weight information when children nodes are exiting
Description
Addressed issues
Screenshots
Navigating away and back resets all weights to 1![image](https://github.com/bitbrain/beehave/assets/3381769/90a4bdcb-b325-49f1-b9eb-fb1094a0b1d5)
Now navigating away and back maintains weights![image](https://github.com/bitbrain/beehave/assets/3381769/e9155c35-684d-4352-9ecc-48a69915e4d3)