Code for adding a score