Attempting state-based DPOR implementation from the SPIN paper.