A collision has occurred

If the conditional clause in the if statement in Listing 4 returns true:

When that happens: