upgraded debug mode, deeper analysis of the play() function.