change the way item stacking works

optimized code