added pausing functionality to player