- finished simple backtracking