DeepCopy function in board