Implements subsumption for two behaviors: moving forward and obstacle detection.