Updated score algorithm