fixed a few problems when moving pieces around.