Pathfinder using a* (A star) written in Scala.