Check if inventory is chest or double chest.

Inventory check prevents class cast exception for line 3 in updateSign method. Also changed map key to type string has player consists of other information that doesn't need to be stored.