Modeling Biology Inspired Reactive Agents Using X-machines