Work on getPoints() algorithm