added a lot of framework code for the pathfinding