CoffeeScript A* Implementation