Basic if statement to toggle play and puase functions

If playing, then pause. If not playing, then begin doing so