Every robot has this finite state machine. The "Chase State" tells the robot how to pursue and grab its current target. The "Search State" tells the robot how to find a target. Having a target dictates transitions between these overall states.