Update RuzzleHelper.java

Backtracking for visited points, better for space and complexity.