fixed logic error when copying board array