Time of closing this post. Before closing it I have to say I modified a little the program so the king can be dragged all around the board and only over the board. Added a toggle button when 'X' is pressed and that's it. Will post final key in a while.