Implemented the knight's tour