Added evaluateGroups to form groups with points