You can't drag "Cancel" sprite because on every tick you set its position to (tools3.X, tools3.Y)
Your code is pretty cluttered and poorly organized.
I suggest you read about functions, groups, families, containers etc., and start using them. This will make a huge difference.