Diferent Pathfinders using Scala