for(int i=0;i<4;i++)
{
for(int j=0;j<3;j++)
{
pics[i][j] = i*3 + j + 1;
}
}
pics[0][3] = 0;
Random rand = new Random();
for(int i=0; i<4; i++)
{
int x1 = rand.nextInt(3);
int y1 = rand.nextInt(4);
int x2 = rand.nextInt(3);
int y2 = rand.nextInt(4);
int n = pics[y1][x1];

