Added method to compare two ItemStacks.