2D game, going through walls

Having a problem with my main character going through walls(just a cube, it has a rigidbody as does the player)

The only time it works is if I set IsKinematic to false, which my player touches the wall, it gets bumped off screen (if I freeze the position my player goes through it)

I just want my player (plane with a box collider, and rigidbody) not to be able to go through or move my wall (cube, with rigidbody and collider)

Help??:frowning:

FixedUpdate fixes the problem(put all the movements in there), let me know if there is a better solution tho