Fixed togglePiece()