This is a challenge for my maths class. Try to change the code to make the collision detection work using the Pythagorean theorem.