Working java Astar grpahics