Here is a code sequence that needs some debugging. We want to stop the fish from reaching the pink coral by moving the diver up and down to block its path using the up and down arrow keys. If the fish reaches the coral, the player should lose one point. The problem is the player is losing too many points when the fish touches the coral. We only want the player to lose one point each time. The other problem is the player is losing a point when the fish is touching the starfish. Run the code multiple times. Can you debug and come up with a solution so the player only loses one point when touching the coral and doesn't lose any points when touching the starfish?
WARNING: Don't look at the possible solution sprite until you've tried debugging the code first yourself!