Trying to test if a polygon is convex, committing what I have so far