Added missing while loop to draw the points