Update tournament.lib.php