Cleaned up the code and added a torus to indicate moved pieces.