implements the score system