changed the code for the score that was giving an error message