Update PolygonArea.java

Updated PolygonArea to fix the point-detection issue.