add value check in Agent#getBehaviorAt()
refactor Agent and Behavior class