Implement A* and EntityManager