adding intelligence to the robot