It searches around for food and heads to it. If the food it selected is gone, it searches again. When it touches the edge, it's teleported somewhere random.
All