Implemented inventory. Fixed a logic error when going into battle mode where it would accept any text as a correct value.