Got blocked version working and added initial version of backtracking. Kind of slow, needs tuning