add score functionality