Implement an algorithm to find the shortest safe path through a grid with dynamically moving obstacles at Autonomous Solutions.