Instead of using a cap, you could as well just have sort of a "sliding door", which closes after the ball has entered.