add score logic