worked on pacman.c