calculating scoring correctly