Artificial Intelligence in a soccer game - Sectorize and avoid

A grid is created and the characters are evolving from a cell to another. Each one
of them is analysing what is going on inside of its cell so it can react. The characters
in the same cell are going to avoid each other.

More useful functions and samples here