Update ManhattanHeuristic.java

The algorithm was incorrect. It works as expected now.