The ‘following’ behaviour is part of our attempt at AI. It tries to be at some sort of average of its own previous position, a goal at either side of the screen (it can switch randomly) and the center of the players’ position.