Implemented a method allowPassage in Entity