In packman game virus activation

Hi buddy’s
i am very new to this forum …

I have a game like pacman and i am doing it in AS3. I just dont understand how to control virus movements like in old packman game they are using A* algorithm , i dint got what exactly it is .

Thanks