A* Pathfinding for iOS and Mac OS X games