pacman clone in python