pause/play button flicker problem

Pause Play button flicker problem has been resolved. Have added two
boolean variables.