Backtracking

Need to comment out the printing to make it faster