add several funcs to deal with save score and file operation