Problem with my code?

I promise you that my code is right, but it won’t work.

Fairly certain my code is right, I’ve added 3 gems and I’ve added a goal, what’s happening?

Forgot to include this. Yes, I have tried just collecting all of the gems to end the level, but nothing is happening.

Try to click “Play” and complete your level.