create function to kill pacman