title: Solving 8-Puzzle using DFS
body: <p>I am looking for code in java that implement DFS and BFS for the 8-puzzle game by given initial state :</p>
  
  <pre><code>1 2 3
  8 0 4
  7 6 5
  </code></pre>
  
  <p>and Goal state</p>
  
  <pre><code>2 8 1
  0 4 3
  7 6 5
  </code></pre>
  
  <p>I need to print the solution path from initial to goal state (Not done yet)</p>
  
  <p>This is the code I have. So far I have only been able to implement DFS. What my program does so far is it outputs SUCCESS once it finds the goal state.
  However it never gets to this point. </p>
  
  <p>Can someone tell me where I am going wrong?</p>