public float[] checkKvadrat()
{
float[] kvadr = new float[12];
int q = 0;
float y = 0;
for (int i = 0; i < 12; i++)
{
for (Rectangle br : brush)
{
if(br.intersects(rectangle))
{
y = 1;
break;
}else y=0;
}
kvadr = y;
y=0;
}
return kvadr;
}