renamed action_required instead of entering and remove two if False conditions in sparse_rail_generator