結果 : implement a star algorithm in python