In the function, it is checked if each pixel of the ghost overlapped with each pixel of the pacman. If it did, the game was automatically over and the screen became black, printing the score and two ...