The scuba diver is trying to collect as much pearls and coins as possible to get her score to 30 and the shark is trying the catch and prevent that.
I added a shark chasing the scuba diver and if he touches it it switches to a game over screen but if the scuba gets more that 30 as the score than it switches to a you win screen.