Applied change to on leave listener to reset player data.