public TournamentLadderControl(TournamentLadderViewModel viewModel)
        {
            InitializeComponent();

            _viewModel = viewModel;
            _numberOfStages = (int)Math.Ceiling(Math.Log(_viewModel.Bots.Count, 2)) + 1;
            _startingNumberOfBots = (int) Math.Pow(2, _numberOfStages - 1);
            Refresh();
        }
        public UserControl GetVisualization(IConfigurable configuration)
        {
            if (Bots != null)
            {
                _tournamentLadderViewModel = new TournamentLadderViewModel(Bots);
                return new TournamentLadderControl(_tournamentLadderViewModel);
            }

            return null;
        }