title: Representing a path as a coloured image
body: <p>Unsure what the below function does, could someone explain? The algorithm takes a path that is found by a breadth first search algorithm and returning it to the colour_path function that is meant to colour it in to show graphically on matplotlib.</p>
  
  <p>Path function that I am unsure about:</p>
  
  <pre><code>def color_path(maze, path): #Function to represent the path when the user asks for a solution
      for (x, y) in path: #
          maze.board[x][y] = constants.RED
  
      if len(path):
          maze.board[path[0][0], path[0][1]] = constants.BLUE
          maze.board[path[-1][0], path[-1][1]] = constants.BLUE
  </code></pre>