the ball gets stuck for secs when it hits the player
The code given can't be right. It does not look like it would even compile.
Also, that cannot be the entire class as there is no class declaration line shown.
Again that cannot be the entire class codes. Plus, there is no way it could possibly compile as is. How can you possibly determine that the actor gets stuck anywhere (as it cannot run until it compiles properly)?