Mouse click on chess board

I added a function to handle mouse clicks on the chess board. This
function also converts the mouse position into file and rank of the
corresponding position.