Create score.c

USE THIS ONE INSTEAD OF THE EARLIER VERSION