Trainable agent using Reinforcement Learning algorithms