Seeing around corners: cells solve mazes and respond at a distance using attractant breakdown