HOPKINS: Replace a global variable by a parameter in playSequence()