upsolving dp on CF, should be reading up more nim games though...