A deep reinforcement learning method based on attentional memories