refactored tournaments controller