Implemented getNextMove() method in the KnightsTourAlgorithm class.