Draws the path correctly