Implementing swarm algorithms in games for my thesis