implemented show path method

added new method buildPath()
and showPath()
Now ready for testing