Updated 8-Puzzle Java.