Made the InventoryMask using an ItemStack[] itself (reverted from commit 50af9d36f2bf550270fba939f79ae804d1e80ebe)
also change whole masking system to a simple offset using class