Replaced toggle function with new function playPause,removed redundant button vars and moved playIcon eventlistener to general button listener group