Update AStar.java

Removed uneccesary code