changed score calculation so it updates