2DColliders going through eachother

Hi. I’m making a game where a guy needs to move blocks by bumping into them. I gave the blocks and the player a 2D boxcollider and I gave an empty object a collider to prevent everything from falling off the screen. Now when I move my player, the block-colliders are going through each other. I want the blocks to be ‘stronger’ so they won’t overlap. I gave the blocks a rigidbody too. I know this problem with colliders has been asked a lot but I don’t know how to fix this.

Look at the pictures below if my question is unclear

Did you try setting the RigidBody collision detection type to continuous?