Fix ghost tournaments when one is forcibly ended with battles still running.

Also make the win replacement code more elegant
Fix not loading tournament bracket properly when reconnecting