Toward a domain-independent framework to automate scaffolding of task-based learning in digital games