Removing objects once out of the canvas

Hello,

Please format your code:
https://discourse.processing.org/faq#format-your-code

I helps us help you.

:)