bitset
if (newloc != loc && !forced(loc) && !bitset(loc, 3)) {
if (loc == 0 || forced(loc) || bitset(newloc, 3))
|| (i == 6 && bitset(newloc, 3))
static int bitset(int, int);
if (!bitset(loc, hint))