Added the distance check

Added distance check. The pet now knows the object is there. Tomorrow we
will work on the pet choosing to check out the object.