Fixed a handling bug in TournamentController. Modified some debug messages.