Code for the world's slowest game of pacman