revert simplification of pseudo_legal