(-) Almost there.

It couses loop:
	initial_state.matrix[0][0] = 7;
	initial_state.matrix[0][1] = 1;
	initial_state.matrix[0][2] = 3;
	initial_state.matrix[1][0] = 0;
	initial_state.matrix[1][1] = 6;
	initial_state.matrix[1][2] = 8;
	initial_state.matrix[2][0] = 2;
	initial_state.matrix[2][1] = 5;
	initial_state.matrix[2][2] = 4;