fixed a bug in draw method in Points.java, improved the performance