find_closure
while (find_closure(ty, tx, tdir, b)) {
int find_closure(size_t& y, size_t& x, int& dir, BOARD& b);