public bool IsLegal()
{
int total = 0;
for (int s = 0; s < 24; s++)
total += board[0][s];
total += finished[0] + captured[0];
if (total != 15)
return false;
total = 0;
for (int s = 0; s < 24; s++)
total += board[1][s];
total += finished[1] + captured[1];
if (total != 15)
return false;
return true;
}