Test for "No piece can be moved that will either expose the king of the same colour to check"
Useful more readable assert added.
Rook-specific solution to exclude moves that cause our king to be exposed to check