An a* pathfinder for AS3