Woah, unsure how it could crash! We struggled a lot with the gravity code, after a while we found a github repo (linked in description) that we could build off. Still a lot of struggles though haha