add paused function to player