Borad Edit;when initial,computes hamming and manhattan