Experience memory should be part of model, not the script that is running the game. This will also allow for resuming learning.