public void remakePath(MatrixGraph graph) {
		AStar aStar = new AStar(graph);
		List<Node> nodePath = aStar.search(x, y, targetX, targetY);
		nodePath.remove(0);
		nodePath.add(new Node(targetX, targetY));
		path.clear();
		path.addAll(nodePath);
	}