Move the dove using your mouse. If the crystal hits the line, game over.
I made this using a tutorial. Please do not change the code if you look inside. Let me know in the comments if something is wrong. Thank you!