// Create a knight chess piece
Piece knight = new Knight(startSquare);
// Setup our A* Search, and begin searching
AStarSearch aStar = new AStarSearch(startSquare, endSquare, knight);
Path p = aStar.Search();
// Print the path that was discovered
if (p != null)
printPath(p);
else