Knights tour in C