Thank you for your comment, i been experimenting with the collisions and i didnt know what to do to aviod getting stuck in the wall but i will figure it out in my next games.
i forgot if you used Unity engine but, if you do you can use layers to remove collisions between two different layers, you can see that inside of : file:build settings: player settings: Physics2D