I think i know what caused that bug, if you overlapped the ball instead of colliding with it it would change direction rapidly and just go trough, have no way to fix it tho, i think i should just make the hitbox thinner