title: How to find shortest path in this type of maze
body: <p><a href="https://i.stack.imgur.com/nMoZw.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nMoZw.jpg" alt="Red"></a></p>
  
  <pre><code>Red Dot - Represents the initial location
  Black Dot - Already occupied
  Green - Free to occupy
  Destination - Boundry of the matrix [which means either x = 0 or y = 0 or x = 8 or y = 8]
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/crzs6.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/crzs6.jpg" alt="eg."></a>
  <strong>Example:</strong> </p>
  
  <p>The <code>red dot</code> can place itself only one move at a time and can move in one of green six circles which are attached to it.
  What will be the fastest method to calculate the shortest path in this type of maze.</p>