lots of progress

everything functions as expected except for selected pieces after moved