>>96
color 配列は、int 型なのに暗に、float 型を期待していないか?

if((turn==0 && color[r2,c2]<=0 || (turn==1 && color[r2,c2]>=1)){

if((turn==0 && n<=0.0f) || (turn==1 && n>1.0f)){

この行の書き換えでどうなるか試してみて欲しい。