Difficulty adjustment and retargeting algorithms