When you added new criteria you only got to set the criterion title, type, flag and point but you had to manually add the requirements for the first criterion.
Now when you add a new criterion the new criterion will by default add the requirement for the points.
reverted a previous change in the for loop the correct condition was to check against 0, I accidently turned that to 1 in a previous commit. Also added a comment to try and explain what that condition checks for.