Create score.c

write function for scores.