It might be possible to simplify item stacks so that instead of having an actual table of items we only have an "amount" variable in each Item object.