C Code - in graphics/ HORSE (L MOVEMENTS)

Given a chess board. User can initially choose where to put the HORSE/KNIGHT.
User can move of course by letter L (like in chess game),
The user can move again until he/she pass through all possible blocks.

HORSE/KNIGHT cant go back to where it came from. or
cant pass through a block that it had passed through.