As far as I can see, you used Unity to make this game. Unity has a function called DontDestroyOnLoad() that you can read about which could help with the problem ^^
There is also an alternative with multiple scenes running at the same time.