old pacman code