A knights tour using a linked list