Implemented a basic detection and attack system for the hero