Optimization for reinforcement learning based 3D animation exercise