Added score calculation