Basic Collision Program
Here is some example code for a Basic Collision Detection Program:
Limitations:
The program only detects collisions at the end of every animation phase.
Challenges:
Mess around with the variables to get a better understanding of what it does
Using this as an example make your own code that can detect collisions at any time