change pacman functionality(not finish) and start ghost functionality