pause/play button flicker problem

Pause Play button flicker problem has been resolved. Have added two
boolean variables.
Merge pull request #3 from krohini1593/Rohini

pause/play button flicker problem