rails knockout / single-elimination tournament stuff