Added score algorithm