Implement Duel Tournament ranking system, and some fixes.