pouring algorithm rush job