If I change to int N = 6;, I get 6 points.
int N = 6;
What do you get that is different? What are you wanting to get instead?