Memory to learn from is the one with largest reward