Checking if the chest's items are more than needed.
Added more documentation