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