Algorithm to check if a scarf is well suited in a mannequin. Reinforcement learning, rewarding robot