Unsupervised Predictive Memory in a Goal-Directed Agent