Fixes and protections for dragging victs and objs

Fixes issue #359, as well as fixing indentation, improving messaging, and preventing possible exploits.