Starting from the beginning of a custom maze of pillars selectively linked with planks, the most optimal path is found to the end through a modified A* algorithm. The P* algorithm uses an extra plank to find the most optimal path, given time and space complexity.