How to Code: Collision Detection — Part I