Artificial Intelligence in a soccer game - Tackling to take

In this new sample a player can be tackled by an opponent if he has
the ball. The current goal for each team is to get the ball but not to
score yet.

More useful functions and samples here