Added some of the logic, in words, behind the A* algorithm