Quadcopter stability using reinforcement learning