Createda system of polygon for terrain collision detection.
some improvement on the polygon functions.  Need to fix the collision function.  Finding the intersection point on the intersecting vector should allow me to push back the polygon in the appropriate direction for it to not intersect anymore.