resetplayer function added