Initial implementation of pacman