Fixes issue with game tree being duplicated when refreshed. The function now removes previous outdated game trees when refreshed.