Trying to calculate score