added search behavior to robot.cc