Routing On A Weighted Grid Maze Algorithm