Improved elegance of A* by changing a String[][] to an int[][][].