Movegen: further simplify generate_move_if_legal