More drag and drop work

The drag and drop process is better. I’ve added a new IO method named
move() to handle the moving process.