pi: put looped maze solving into robot script; works except for a bug starting on a dead end and what seems to be occasional sensor unreliability