Refactor tournaments controller