added mapping and pathfinding