add function to make score.txt