Added method isEnoughStock in Item.java