Prototype of A* algorithm source code game map A* algorithm