Some more refactoring

Cleaned up and moved the findUciEnginesAmong function to the utilites module.