bug fix in max social welfare -- check all columns, including rightmost