All code needed for training the Euphoria agent