help with click and releasing

i have a game where you can move blocks. i want it to be so when you click on an actor you cant move the other blocks. for example i have a ball and a block i move the block and when you click the ball i dont want you to be able to move the block any more.
I have another question say i dont want the blocks to be able to over lap each other but when they hit each other they dont collide
I have another question say i dont want the blocks to be able to over lap each other but when they hit each other they dont collide