"ItemFromBlock(block)" calls "itemToBlockMapping[block]"
There's a naming issue here. "blockToItemMapping[block]" probably does what you mean.