Code:
	int array2d[2][2];
	int i = 0;
	int j = 0;

	for(i=0;i<1;i++)
	{
		// ...

		for(j=0;j<4;j++)
Red should match red and blue should match blue.