solves the knight's tour puzzle