refactor tod_manager::get_illuminated_tod to take map as an arg

Helps to encapsulate, and eliminate unnecessary resources::pointers.