Updated to eight-puzzle Java