Group moves by the number of points they are worth.
Assign cycles the value of all dots of that color plus any encircled dots, and add a flag to masks to represent if it is a cycle.