public int[] getNextAvailablePosition(Board board){
        boardArray=getBoardState(board);
        for(int i=0;i<board.getBoardSize();i++){
            for(int j=0;j<board.getBoardSize();j++) {
                if(boardArray[i][j]=="-")
                    return new int[]{i,j};
            }
        }
        return new int[]{};
    }