We struggled with the path finding and realized afterwards that we could have used navmesh for the performance limitations especially in webgl