Box Collider 2D not working as intended?

Hi,
I am using a canvas with UI images for both player and enemy characters. I am using the box colliders and rigidbodies (both 2D) for both images. But what I am getting is when one image steps into the boundary of another, instead of getting stopped completely it gets pushed back slowly. Any help please, I really can’t figure this out.
Thanks,
Liam

By the way I am using Unity 5.3.5f1 since this is a school project.

UI images really arent made for player characters - they’re just for UI. the UI updates multiple times per update, so not only will it slow your game down, it could also throw your movement logic out of wack with the physics.