public List<Player> choosePlayersBasedOnMode() {
        Player playerOne;
        Player playerTwo;
        List<Player> players = new ArrayList<Player>();
        if (getMode() == 1) {
            System.out.println("Mode 1 is selected ");
            playerOne = new HumanPlayer();
            playerOne.setSymbol('X');
            playerTwo = new HumanPlayer();
            playerTwo.setSymbol('O');
        } else if (getMode() == 2) {

            System.out.println("Mode 2 is selected ");
            playerOne = new HumanPlayer();
            playerOne.setSymbol('X');
            playerTwo = new ComputerPlayer();
            playerTwo.setSymbol('O');
        } else {
            System.out.println("Mode 3 is selected ");
            playerOne = new ComputerPlayer();
            playerOne.setSymbol('X');
            playerTwo = new ComputerPlayer();
            playerTwo.setSymbol('O');
        }

        players.add(playerOne);
        players.add(playerTwo);
        return players;
    }