I feel cluttered just looking at it.
I used this one and it work good.
When you let up the mouse button, the computer assumes that your turn is over.
Kings can be captured like any other piece.
You aren't specifying the size, and so all your squares are 10x10.
The goal of the code at this point is to draw the initial board red pieces at top, black at bottom.