Added the functions possibleSteps and getPath