stopCursor Stops the cursor from moving and proceeds with the chess game.
The cursors motion is stopped and the game logic is executed.
This function is called from the Mouse Button Up Callback, and causes the mouse to stop moving. It checks whether the move (currently stored in the cursor) is legal. If it is legal the half-move is executed, otherwise the cursor color is set to red, indicating that it was illegal. If the half-move was legal, EDI moves. All moves are recorded here. Also the decision of who won the game is made. Hence, this function is one of the central control parts of the chess program.
Stops a moving cursor and executes the move (stored in the cursor structure). stopCursor
cursorListener, setCursor, reset_cursor