Generalized script. Can now handle: tournaments with arbitrary number of venues, detects invalid placeholders, detects unused placeholders