Physarum polycephalum, a brainless slime mold, uses its body to sense chemical cues in its environment and performs complex calculations, similar to what humans consider to be thinking, to decide on the direction to grow based on the information presented.