An overview of reinforcement learning