Working on the calculateScore function.