Update ball.html

added harder detection logic