Timing is Key for Motivation in Game-Based Learning