create function for pacman to lose life if pacman touches ghost without powerup