Use integers instead of Point structs, and some code to find the convex hull.