Reinforcement Learning Using Feedforward Neural Network with Memory Mechanism