Warning: it's implemented here in a lazy way. Ko rule isn't checked, and points are not counted in the end.