add function so that pacman can kill ghosts