Calculates the distance between two points, using the pythagorean theorem. Not that you'd ever actually want to do this in a real game!