ball detector