The script for the math behind the collisions in the third mini game where from amcerbu and improved by eRKSToCK. https://scratch.mit.edu/projects/10078522/