mabye you are moving the ball before you check collision? That way it would move through the wall before it gets a change to bounce off.
Although i don't know how to do that 😅, I will look into it and see if any thing can be done