Determine if Moving Target will be Hit

The Moving Target class is passed the x-coordinate of the point of intersection of the two paths and the frame count of the projectile. From the two pieces of information, we compute in the class whether the target will reach the intersection point in the given frame count. If so, the moving target reports that it will be hit and a explosion takes place.