Clean up SC_NOUT_FOUND handling.
add logic to add tournaments.
Refactoring: move controllers to separate files.