The Knights Travails problem solved in Java with A*