Extend Gary's queen mobility idea to rooks and undefended squares.
Rewritten based on feedback from Gary & joergoster.  Thanks!
bench: 6567522