feel free to take the code!
if you make the ball go too fast, it will go through the walls. also, the ball will go through a wall if it touches a horizontal wall on the end. a way to fix this is putting a bit of the horizontal wall on the end of a vertical one or vice versa.