Update and rename AStar.rb to src/AStar.rb

Ended method, Comments added, root directory added.