Made the play button toggle between pause and play based on the player state.