@Override
    public void enterInput(Board board) {
        input = scanner.nextLine();
        boardArray = getBoardState(board);
        int x = 0, y = 0;
        while (true) {
            if(input.length()!=3)   {
                System.out.println("The board Position is already occupied or it is invalid . Please enter an another position");
                input = scanner.nextLine();
                continue;
            }
            x = Integer.parseInt(input.split(" ")[0]);
            y = Integer.parseInt(input.split(" ")[1]);
            if (x > board.getBoardSize()-1 || x < 0 || y > board.getBoardSize()-1 || y < 0 || boardArray[x][y] != "-") {
                System.out.println("The board Position is already occupied or it is invalid . Please enter an another position");
                input = scanner.nextLine();
                continue;
            }
            break;
        }
        System.out.println("You chose "+x+"   and  "+y);
    }