working A* with path traversal. Undone code though