Solver_core returns a RoleMap rather than a list
Moved get_selected out of Solver_core

Not needed now that we return a map.