Run
cac = inputdlg( 'Enter your next move ( row,col;row,col;...)' );
num = str2num( cac{:} )
and input:   1,2;3,4;5,6.   and get the output
num =
1 2
3 4
5 6
The user may also input two (or any number) whole numbers separated with space.