Create constraints between pairs of cells by providing a
custom JavaScript function.
Define a finite-state machine using JavaScript transition
and accept functions. The constraint will be satisfied
the state-machine reaches an accept state after processing
the cells in order.
NUM_CELLS is available as the number of
currently selected cells.
Tip: You can use console.log to debug your
state machine.