Fix double elimination tournament bug and improve unexpected error reporting

You need to have `{ }` if you're going to put `if` statements on multiple lines.

Can you go and fix that at some point on both the server and client tournaments code?