characterHasItem changed and minor other

Changed characterHasItem to take a player object, added a line to help
avoid an infinite loop, and added debugging statements