(the broken code checked that the only pieces on the king's path to its new position were kings and rooks of the appropriate color)