While your code debugging and the lives is 0, game is loop and game is not pause. And lives decrease, num of ghost are more than 4.